package com.dky.satell.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dky.satell.entity.OfflineFileMeta;
import com.dky.satell.mapper.OfflineFileMetaMapper;
import com.dky.satell.service.OfflineFileMetaService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author fnagyuan
 * @since 2021-05-13
 */
@Slf4j
@Service
public class OfflineFileMetaServiceImpl extends ServiceImpl<OfflineFileMetaMapper, OfflineFileMeta> implements OfflineFileMetaService {

    @Resource
    private OfflineFileMetaMapper offlineFileMetaMapper;

    @Override
    public OfflineFileMeta selectOfflineMetaFileByName(String fileName) {
        return offlineFileMetaMapper.selectOfflineMetaFileByName(fileName);
    }

    @Override
    public List<OfflineFileMeta> getAllToBeLoaded() {
        return offlineFileMetaMapper.getAllToBeLoaded();
    }
}
